import asyncio
import socket
import time
import struct

import select

pack = struct.Struct('d')
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(('0.0.0.0', 8500))
conne, addr = server.accept()
# server.connect(('139.155.181.21', 6582))
while True:
    try:
        data = conne.recv(1024)
        # print(pack.unpack(data))
        server.send(data)
    except KeyboardInterrupt:
        break
